package org.wukongcrm.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.wukongcrm.domain.entity.Visit;
import org.wukongcrm.domain.model.R;
import org.wukongcrm.service.VisitService;

import java.util.List;

@RestController
@RequestMapping("/visit")
public class VisitController {

    @Autowired
    VisitService visitService;


//    查询 回访 信息
    @GetMapping("/findVisit")
    public R<List<Visit>> findVisit(){
        List<Visit> list = visitService.list();
        return R.success(list);
    }
}
